import axiosIns from '../../utils/axios';
import update, { updateChain } from 'immutability-helper-x';
import { commentDetail } from '../../utils/mock';
/**
|--------------------------------------------------
|  Constants
|--------------------------------------------------
*/
/**
|--------------------------------------------------
| Actions
|--------------------------------------------------
*/
/**
|--------------------------------------------------
| Action Handlers
|--------------------------------------------------
*/
/**
|--------------------------------------------------
| Reducer
|--------------------------------------------------
*/
export default function(state = initialState, action) {
  const handler = ACTION_HANDLERS[action.type];
  return handler ? handler(state, action) : state;
}
